const express = require('express')
const router = require('./controller/router')
const bodyParser = require('body-parser')

app = express();
app.use(bodyParser.urlencoded({ extended: false }))

app.use(express.static('static'))
app.use(express.static('upload'))


app.set('view engine', 'ejs')

const prot = process.env.prot || 4000;


app.use('/', router);

app.listen(prot);